home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / admin / RCS / Rdist,v < prev    next >
Encoding:
Text File  |  1992-08-11  |  2.0 KB  |  111 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.3
  10. date     92.08.11.12.53.04;  author jhh;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     91.01.20.22.42.20;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     91.01.20.21.36.24;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @Nightly backup script using rdist.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @changed kupfer to jhh
  33. @
  34. text
  35. @#! /sprite/cmds/csh -fb
  36. #
  37. # This file rdists the entire Sprite file system and is invoked
  38. # nightly by crontab.
  39. #
  40. # $Header: /sprite/admin/RCS/Rdist,v 1.2 91/01/20 22:42:20 kupfer Exp Locker: jhh $
  41.  
  42. set path = (/sprite/cmds)
  43.  
  44. echo -n "Rdist started: "; date
  45. set distfile=(/sprite/admin/distfile)
  46.  
  47. # Address to send error messages to
  48. set admin=jhh
  49.  
  50. set targets=(kernel include)
  51.  
  52. # First make a dry run through to make sure the distfile is
  53. # acceptable.
  54. rdist -n -f $distfile $targets > /dev/null
  55. if ($status != 0) then
  56.     echo "Error in $distfile."
  57.     echo "Error in $distfile." | Mail -s "distfile problem" $admin
  58. else
  59. # The dry run worked.
  60. # Rdist each target individually to get around a bug that is causing
  61. # rdist to die.  Maybe.
  62.     foreach target ($targets)
  63.         echo "rdist $target"
  64.         rdist -f $distfile $target | grep -v "updated" | \
  65.                                      grep -v "Warning: remote mode"
  66.     if ($status != 0) then
  67.         echo "Please check /sprite/admin/Rdist.log." | \
  68.             Mail -s "rdist of $target failed" $admin
  69.     endif
  70.     end
  71. endif    
  72. echo -n "Rdist completed: "; date
  73.  
  74. @
  75.  
  76.  
  77. 1.2
  78. log
  79. @Change admin to kupfer.  Send mail if the rdist fails (e.g., no space
  80. on the backup host).
  81. @
  82. text
  83. @d6 1
  84. a6 1
  85. # $Header$
  86. d14 1
  87. a14 1
  88. set admin=kupfer
  89. @
  90.  
  91.  
  92. 1.1
  93. log
  94. @Initial revision
  95. @
  96. text
  97. @d2 1
  98. d5 3
  99. d12 1
  100. d14 2
  101. a15 5
  102. set admin=douglis
  103. # Do each target individually, and do "misc" last since it's the one
  104. # that triggers the "expected control record" snafu.
  105. #set targets=(src users kerneltest rootdirs mh newatt \
  106. #             newcmds emacs misc2 misc)
  107. d18 2
  108. d25 1
  109. d32 4
  110. @
  111.